<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<div class="left-bar">
	<div class="left-bar-item">
		<a class="btn-block allItem active" href="/user/list">全部</a>
		<c:forEach items="${roleList }" var="role">
	    	<div class="btn-block item">
	    		<a href="javascript:void(0);" onclick="searchRoleUser(${role.id})"><i class="role-name" value="${role.id}">${role.name }</i></a>
	    		<span class="pull-right">
	    			<a href="/role/updateRole/${role.id }" style="display:inline;">
	    				<i class="btn-tinge edit" data-toggle="modal" data-target="#change-role-modal">修改</i>
	    			</a>
	    			<a onclick="removeRole(${role.id })"><i class="iconfont icon-shanchu btn-tinge del"></i></a>
	    		</span>
	    	</div>
		</c:forEach>
	</div>
	<a class="btn-block new-progress text-center" href="/role/addRole"><i class="iconfont icon-tianjia"></i>&nbsp;新增角色</a>
</div>
